<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateReclist0DatasTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('reclist0_datas', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title', 191)->nullable()->comment('推荐标题');
            $table->string('subtitle', 191)->nullable()->comment('推荐副标题');
            $table->integer('reclist0_id')->default(0)->nullable()->unsigned()->comment('推荐数据ID');
            $table->string('bulk')->nullable()->comment('批次');
            $table->integer('data_type')->default(0)->unsigned()->comment('数据类型ID');
            $table->integer('data_id')->default(0)->unsigned()->comment('数据ID');
            $table->integer('range')->default(0)->unsigned()->comment('range');
            $table->integer('tpl_id')->default(0)->nullable()->unsigned()->comment('模板ID');
            $table->string('img', 191)->nullable()->comment('推荐图');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('reclist0_datas');
    }
}
